//
//  LLT_VideoModel.m
//  CoderLLT
//
//  Created by lanou3g on 15/12/9.
//  Copyright © 2015年 刘晓萌. All rights reserved.
//

#import "LLT_VideoModel.h"

@implementation LLT_VideoModel


#pragma mark --- model的所属方法

/**
 * 销毁model
 */
-(void)dealloc{
    self.title = nil;
    self.segs = nil;
    self.create_time = nil;
    self.thumb_img = nil;
    self.time_len = nil;
    self.avatar = nil;
    self.username = nil;
    self.play_times = nil;
}

/**
 * 初始化
 */
-(instancetype)init{
    if (self = [super init]) {
        self.segs = [NSMutableArray array];
    }
    return self;
}

/**
 * KVC赋值
 */
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

    if ([key isEqualToString:@"user_info"]) {
        NSDictionary *dic = value;
        self.avatar = dic[@"avatar"];
    }
    
}


@end
